import org.springframework.security.crypto.bcrypt.BCrypt;

public class Bcript {
    public static void main(String[] args) {
//        String hashpw = BCrypt.hashpw("123456", BCrypt.gensalt());
//        System.out.println(hashpw);
        boolean checkpw = BCrypt.checkpw("123456","$2a$10$o1CAEdySnqTwNZuixWQFJuDb0JebH995EYzRElvvmaq1PCHsMzIh2");
        System.out.println(checkpw);
    }
}
